﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Olemas.DataModels;
using Olemas.Models;

namespace Olemas.ViewModels
{
    public class AddViewModel
    {
        public IEnumerable<Faculty> Faculties { get; private set; }
        public IEnumerable<City> Cities { get; private set; }
        public IEnumerable<Course> Courses { get; private set; }
        public BookModel BookModel { get; private set; }
        public UserModel UserModel { get; private set; }
        /// <param name="faculties">Faculties from the database.</param>
        /// <param name="cities">Cities from the database.</param>
        /// <param name="courses">Courses from the database.</param>
        public AddViewModel(IEnumerable<Faculty> faculties, IEnumerable<City> cities, IEnumerable<Course> courses  )
        {
            Faculties = faculties;
            Cities = cities;
            Courses = courses;
            UserModel = new UserModel();
        }

        public AddViewModel(IEnumerable<Faculty> faculties, IEnumerable<City> cities)
        {
            Faculties = faculties;
            Cities = cities;
            BookModel = new BookModel();
            UserModel = new UserModel();
        }

        public AddViewModel(IEnumerable<Faculty> faculties, IEnumerable<Course> courses)
        {
            Faculties = faculties;
            Courses = courses;
            UserModel = new UserModel();
        }
    }
}